
import 'dart:math';

class AppWord{
  final String word;
  final String wordEnglish;

  AppWord(this.word, this.wordEnglish);
}

class AppWordFactory{
  static List<AppWord> words = [
    AppWord('且随疾风前行，身后亦须留心。', 'Follow the wind, but watch your back.'),
    AppWord('一个频频回头的人，是走不了远路的。', 'The wiser a man becomes,the more he will read, and those who are wisest read most.'),
  ];

  static AppWord randomWord(){
    return words[Random().nextInt(words.length)];
  }
}